<template>
  <div>
    <Head :name="name" :to="to" :route="route"></Head>
    <van-search
  v-model="value"
  shape="round"
  placeholder="请输入物流运单号"
  @keydown.enter="search"
/>
<div class="message">因疫情原因不可控造成的摆烂请降低预期</div>
  </div>
</template>

<script>
import { message } from "./service"
import  Head  from "./logisiticsview/headView.vue"
export default {
data(){
  return{
    value:'',
    name:'物流信息查询',
    to:"物流投诉",
    route:"/logisticsComplain"
  }
},
components:{
Head
},
methods:{
async search(){
let res = await message(this.value)
console.log(res);
}
}
}
</script>

<style lang="scss" scoped>
h2{
text-align: center;
}
.message{
  color: #999;
  font-size: 18px;
  margin-top: 20px;
  margin-left: 10px;
}
</style>